import Mock from 'mockjs'

export function resultSuccess(data, { message = 'ok' } = {}) {
  return Mock.mock({
    code: 0,
    data,
    message,
    type: 'success'
  })
}
